package cn.koala.key.configure.apollo;

import cn.seed.common.core.ApolloBaseConfig;
import cn.seed.common.core.ConfigCenterWrapper;
import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.springframework.stereotype.Component;

/**
 * @Description: 钥匙配置
 * @author: 32415
 */
@Component
@EnableApolloConfig(value = {"application"})
public class ApolloKeyManagementAdminConfig {

    /**
     * 获取文件上传
     * @description getFileUploadUrl
     * @param
     * @return java.lang.String
     * @Exception
     * @author shuai.xu
     * @time 2019/8/30 10:46
     */
    public static String getFileUploadUrl() {
        return ConfigCenterWrapper.get("key-management.fileUrl", "");
    }

    public static String getKoalaServiceUrl() {
        return ConfigCenterWrapper.get("key-management-api.koalaServiceUrl", "");
    }

    public static String getKeyapi() {
        return ConfigCenterWrapper.get("key-management-api.url", "");
    }

    public static String getWorkForm() {
        return ConfigCenterWrapper.get("key-management-api.workForm", "");
    }
}